import request from "@/utils/request";

// 获取收款账户列表
export function getPaymentList(page, status) {
  return request({
    url: "/admin/s/cash",
    method: "get",
    params: {
      page,
      status
    }
  });
}

//  新增收款账户
export function addPayment(ruleForm) {
  return request({
    url: "/admin/s/cash/save",
    method: "post",
    data: { ...ruleForm }
  });
}

// 删除收款账户
export function delCourse(ids) {
  return request({
    url: "/admin/s/cash/delete",
    method: "post",
    data: { ids }
  });
}

// 更新收款账户
export function updateStatus(ruleForm) {
  return request({
    url: "/admin/s/cash/update",
    method: "post",
    data: { ...ruleForm }
  });
}
